// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue' 
import App from './App'
import router from './router'
import store from './store/store.js'
import { swiper, swiperSlide } from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import '@/assets/css/reset.css'
import '@/assets/css/iconfont/iconfont.css'
import '@/assets/css/animate.css'
import 'lib-flexible'
import VueAwesomeSwiper from 'vue-awesome-swiper'

// require styles
import 'swiper/dist/css/swiper.css'

Vue.use(VueAwesomeSwiper, /* { default global options } */)

Vue.config.productionTip = false

//导航钩子解除全局
router.beforeEach((to,from,next)=>{
  window.scroll = null;
  document.documentElement.scrollTop = 0;
  document.body.scrollTop = 0;
  next();
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
